package top.codecrab.eblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import top.codecrab.eblog.entity.User;
import top.codecrab.eblog.vo.UserVo;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author codecrab
 * @since 2021-02-26
 */
public interface UserMapper extends BaseMapper<User> {

    List<UserVo> selectTopUserWithComments(@Param("page") Page<User> page, @Param("userIds") List<Long> userIds, @Param("startTime") Date startTime);

    void updateAddPoint(@Param("userId") Long userId, @Param("point") Integer point);

}
